package org.rfs.ipodencoder;

import java.io.BufferedReader;
import java.io.PrintWriter;

import com.trolltech.qt.QSignalEmitter;

public abstract class QOutputParser extends QSignalEmitter implements Runnable{
	public BufferedReader bReader;
	public PrintWriter bWriter;
	public String sFileName;
	public String sPass;
	
	public QOutputParser() {
		
	}
	
	public void setOutputReader(BufferedReader bReader) {
		this.bReader = bReader;
	}
	
	public void setInputWriter(PrintWriter bWriter) {
		this.bWriter = bWriter;
	}

	public void setFileName(String sFileName) {
		this.sFileName = sFileName;
	}
	
	public String getFileName() {
		return this.sFileName;
	}

	public void setPass(int encodemode) {
		switch(encodemode) {
		case 1: 
			sPass = "single";
			break;
		case 3:
			sPass = "first";
			break;
		case 4:
			sPass = "second";
			break;
		}
	}
}
